﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Battles.Atomics;

namespace Battles.Controls
{
	public partial class BattleResControl : UserControl
	{
		public BattleResult Result 
		{
			set
			{
				Army1CasualtiesBox.Text = value.Army1Casualties.ToString();
				Army2CasualtiesBox.Text = value.Army2Casualties.ToString();

				WinnerBox.Text = value.Army1Wins ? "Army1" : "Army2";
			}
		}

		public BattleResControl()
		{
			InitializeComponent();
		}
	}
}
